var faApp = angular.module('faApp',['ngRoute','ui.bootstrap','ngCookies','ng.ueditor','moment-picker']);
faApp.config(function($locationProvider,$httpProvider,$sceProvider) {
  $locationProvider.html5Mode(true);
  $httpProvider.defaults.useXDomain  = true;
  $httpProvider.defaults.withCredentials  = true;
  //delete $httpProvider.defaults.headers.common['X-Requested-With'];
  $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';

  var param = function(obj) {
    var query = '', name, value, fullSubName, subName, subValue, innerObj, i;

    for(name in obj) {
      value = obj[name];

      if(value instanceof Array) {
        for(i=0; i<value.length; ++i) {
          subValue = value[i];
          fullSubName = name + '[' + i + ']';
          innerObj = {};
          innerObj[fullSubName] = subValue;
          query += param(innerObj) + '&';
        }
      }
      else if(value instanceof Object) {
        for(subName in value) {
          subValue = value[subName];
          fullSubName = name + '[' + subName + ']';
          innerObj = {};
          innerObj[fullSubName] = subValue;
          query += param(innerObj) + '&';
        }
      }
      else if(value !== undefined && value !== null)
        query += encodeURIComponent(name) + '=' + encodeURIComponent(value) + '&';
    }

    return query.length ? query.substr(0, query.length - 1) : query;
  };

  // Override $http service's default transformRequest
  $httpProvider.defaults.transformRequest = [function(data) {
    return angular.isObject(data) && String(data) !== '[object File]' ? param(data) : data;
  }];


}) .run(["$rootScope", "$window", "$cookies","$http",function($rootScope,$window,$cookies, $http){
    if(!$cookies.utoken) { }
	$http.defaults.headers.common['Authorization'] = 'FA_'+$cookies.utoken;

    $rootScope.$on('$routeChangeStart', function(evt, absNewUrl, absOldUrl){
        $window.scrollTo(0,0);    //scroll to top of page after each route change
	});
}]);

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {"DATETIME_FORMATS":{"MONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"SHORTMONTH":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"DAY":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"SHORTDAY":["周日","周一","周二","周三","周四","周五","周六"],"AMPMS":["上午","下午"],"medium":"yyyy-M-d ah:mm:ss","short":"yy-M-d ah:mm","fullDate":"y年M月d日EEEE","longDate":"y年M月d日","mediumDate":"yyyy-M-d","shortDate":"yy-M-d","mediumTime":"ah:mm:ss","shortTime":"ah:mm"},"NUMBER_FORMATS":{"DECIMAL_SEP":".","GROUP_SEP":",","PATTERNS":[{"minInt":1,"minFrac":0,"macFrac":0,"posPre":"","posSuf":"","negPre":"-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":3},{"minInt":1,"minFrac":2,"macFrac":0,"posPre":"\u00A4","posSuf":"","negPre":"\u00A4-","negSuf":"","gSize":3,"lgSize":3,"maxFrac":2}],"CURRENCY_SYM":"¥"},"pluralCat":function (n) {  return PLURAL_CATEGORY.OTHER;},"id":"zh-cn"});
}]);

faApp.sysVersion = (new Date()).getTime();
faApp.config(['$routeProvider','$locationProvider',function ($routeProvider, $locationProvider) {
	var v = faApp.sysVersion;
    $routeProvider
      .when('/index', {  templateUrl: 'tpl/index/index.html?' + v,  controller: 'IndexCtrl' })
      .when('/index/panel', {  templateUrl: 'tpl/index/panel.html?' + v,  controller: 'IndexPanelCtrl' })
      //每日展示页
      .when('/index/everyday', {  templateUrl: 'tpl/index/everyday.html?' + v,  controller: 'IndexEverydayCtrl' })
      .when('/login', {  templateUrl: 'tpl/login.html?' + v,  controller: 'LoginCtrl' })
      .when('/logout', {  templateUrl: 'tpl/login.html?' + v,  controller: 'LogoutCtrl' })
      .when('/upinfo', {  templateUrl: 'tpl/upUserInfo.html?' + v,  controller: 'LoginCtrl' })

      .when('/user/list', {  templateUrl: 'tpl/user/list.html?' + v,  controller: 'UserListCtrl' })
      .when('/user/edit', {  templateUrl: 'tpl/user/add.html?' + v,  controller: 'UserEditCtrl' })
      .when('/user/add', {  templateUrl: 'tpl/user/add.html?' + v,  controller: 'UserAddCtrl' })

      .when('/fa/list', {  templateUrl: 'tpl/fa/list.html?' + v,  controller: 'FaListCtrl' })
      .when('/fa/edit', {  templateUrl: 'tpl/fa/edit.html?' + v,  controller: 'FaEditCtrl' })
      .when('/fa/view', {  templateUrl: 'tpl/fa/view.html?' + v,  controller: 'FaViewCtrl' })
      .when('/fa/blacklist', {  templateUrl: 'tpl/fa/blacklist.html?' + v,  controller: 'FaBlackListCtrl' })
      .when('/fa/blackview', {  templateUrl: 'tpl/fa/blackview.html?' + v,  controller: 'FaBlackViewCtrl' })
      .when('/fa/sbdstat', {  templateUrl: 'tpl/fa/sbdstat.html?' + v,  controller: 'FaSbdstatCtrl' })
      .when('/fa/sbddetail', {  templateUrl: 'tpl/fa/sbddetail.html?' + v,  controller: 'FaSbdDetailCtrl' })

      .when('/ad/list', {  templateUrl: 'tpl/ad/list.html?' + v,  controller: 'AdListCtrl' })
      .when('/ad/add', {  templateUrl: 'tpl/ad/add.html?' + v,  controller: 'AdAddCtrl' })
      .when('/ad/edit', {  templateUrl: 'tpl/ad/edit.html?' + v,  controller: 'AdEditCtrl' })

      .when('/link/list', {  templateUrl: 'tpl/link/list.html?' + v,  controller: 'LinkListCtrl' })
      .when('/link/add', {  templateUrl: 'tpl/link/add.html?' + v,  controller: 'LinkAddCtrl' })
      .when('/link/edit', {  templateUrl: 'tpl/link/edit.html?' + v,  controller: 'LinkEditCtrl' })

      .when('/product/list', {  templateUrl: 'tpl/product/list.html?' + v,  controller: 'ProductListCtrl' })
      .when('/product/add', {  templateUrl: 'tpl/product/base.html?' + v,  controller: 'ProductAddCtrl' })
      .when('/product/edit', {  templateUrl: 'tpl/product/add.html?' + v,  controller: 'ProductEditCtrl' })
      .when('/product/base', {  templateUrl: 'tpl/product/base.html?' + v,  controller: 'ProductBaseInfoCtrl' })
      .when('/product/view', {  templateUrl: 'tpl/product/view.html?' + v,  controller: 'ProductViewCtrl' })
      .when('/product/saleProcess', {  templateUrl: 'tpl/product/saleProcess.html?' + v,  controller: 'ProductSaleProcessCtrl' })
      .when('/product/profit', {  templateUrl: 'tpl/product/profit.html?' + v,  controller: 'ProductProfitCtrl' })
      .when('/product/attach', {  templateUrl: 'tpl/product/attach.html?' + v,  controller: 'ProductAttachCtrl' })
      .when('/product/video', {  templateUrl: 'tpl/product/video.html?' + v,  controller: 'ProductVideoCtrl' })
      .when('/product/pronoticeattach', {  templateUrl: 'tpl/product/productNoticeFile.html?' + v,  controller: 'ProductNoiceCtrl' })

      .when('/productnotice/base', {  templateUrl: 'tpl/product/productNoticeBase.html?' + v,  controller: 'ProductNoticeBaseCtrl' })
      .when('/productnotice/list', {  templateUrl: 'tpl/product/productNoticeList.html?' + v,  controller: 'ProductNoticeListCtrl' })
      .when('/productnotice/edit', {  templateUrl: 'tpl/product/productNoticeEdit.html?' + v,  controller: 'ProductNoticeEditCtrl' })
      .when('/productnotice/detail', {  templateUrl: 'tpl/product/productNoticeDetail.html?' + v,  controller: 'ProductNoticeDetailCtrl' })

      .when('/pevcproduct/list', {  templateUrl: 'tpl/pevcproduct/list.html?' + v,  controller: 'PEVCProductListCtrl' })
      .when('/pevcproduct/add', {  templateUrl: 'tpl/pevcproduct/add.html?' + v,  controller: 'PEVCProductAddCtrl' })
      .when('/pevcproduct/edit', {  templateUrl: 'tpl/pevcproduct/base.html?' + v,  controller: 'PEVCProductEditCtrl' })
      .when('/pevcproduct/view', {  templateUrl: 'tpl/pevcproduct/view.html?' + v,  controller: 'PEVCProductViewCtrl' })
      .when('/pevcproduct/baseInfo', {  templateUrl: 'tpl/pevcproduct/add.html?' + v,  controller: 'PEVCProductBaseInfoCtrl' })
      .when('/pevcproduct/saleProcess', {  templateUrl: 'tpl/pevcproduct/saleProcess.html?' + v,  controller: 'PEVCProductSaleProcessCtrl' })
      .when('/company/list', {  templateUrl: 'tpl/company/list.html?' + v,  controller: 'CompanyListCtrl' })
      .when('/company/add', {  templateUrl: 'tpl/company/add.html?' + v,  controller: 'CompanyAddCtrl' })
      .when('/company/edit', {  templateUrl: 'tpl/company/add.html?' + v,  controller: 'CompanyEditCtrl' })
      .when('/company/view', {  templateUrl: 'tpl/company/view.html?' + v,  controller: 'CompanyViewCtrl' })
      .when('/company/sub', {  templateUrl: 'tpl/company/sub.html?' + v,  controller: 'CompanySubCtrl' })

      .when('/role/list', {  templateUrl: 'tpl/auth/listRole.html?' + v,  controller: 'RoleListCtrl' })
      .when('/role/add', {  templateUrl: 'tpl/auth/addRole.html?' + v,  controller: 'RoleAddCtrl' })
      .when('/role/edit', {  templateUrl: 'tpl/auth/addRole.html?' + v,  controller: 'RoleEditCtrl' })
      .when('/url/list', {  templateUrl: 'tpl/auth/listUrl.html?' + v,  controller: 'UrlListCtrl' })
      .when('/url/add', {  templateUrl: 'tpl/auth/addUrl.html?' + v,  controller: 'UrlAddCtrl' })

      .when('/withdraw/list', {  templateUrl: 'tpl/withdraw/list.html?' + v,  controller: 'WithdrawListCtrl' })
      .when('/withdraw/view', {  templateUrl: 'tpl/withdraw/view.html?' + v,  controller: 'WithdrawViewCtrl' })

      .when('/info/fiss', {  templateUrl: 'tpl/info/fiss/list.html?' + v,  controller: 'FissListCtrl' })
      .when('/info/fiss/view', {  templateUrl: 'tpl/info/fiss/view.html?' + v,  controller: 'FissViewCtrl' })

      .when('/simu/list', {  templateUrl: 'tpl/simu/list.html?' + v,  controller: 'SimuListCtrl' })
      .when('/simu/add', {  templateUrl: 'tpl/simu/add.html?' + v,  controller: 'SimuAddCtrl' })
      .when('/simu/edit', {  templateUrl: 'tpl/simu/add.html?' + v,  controller: 'SimuEditCtrl' })
      .when('/simu/view', {  templateUrl: 'tpl/simu/view.html?' + v,  controller: 'SimuViewCtrl' })
      .when('/simu/baseinfo', {  templateUrl: 'tpl/simu/baseinfo.html?' + v,  controller: 'SimuBaseInfoCtrl' })
      .when('/simu/manager/list', {  templateUrl: 'tpl/simu/manager/list.html?' + v,  controller: 'SimuManagerListCtrl' })
      .when('/simu/manager/add', {  templateUrl: 'tpl/simu/manager/add.html?' + v,  controller: 'SimuManagerAddCtrl' })
      .when('/simu/manager/edit', {  templateUrl: 'tpl/simu/manager/add.html?' + v,  controller: 'SimuManagerEditCtrl' })
      .when('/simu/manager/view', {  templateUrl: 'tpl/simu/manager/view.html?' + v,  controller: 'SimuManagerViewCtrl' })
      .when('/simu/company/list', {  templateUrl: 'tpl/simu/company/list.html?' + v,  controller: 'SimuCompanyListCtrl' })
      .when('/simu/company/add', {  templateUrl: 'tpl/simu/company/add.html?' + v,  controller: 'SimuCompanyAddCtrl' })
      .when('/simu/company/edit', {  templateUrl: 'tpl/simu/company/add.html?' + v,  controller: 'SimuCompanyEditCtrl' })
      .when('/simu/company/view', {  templateUrl: 'tpl/simu/company/view.html?' + v,  controller: 'SimuCompanyViewCtrl' })
      .when('/simu/buyinfo/list', {  templateUrl: 'tpl/simu/buyinfo/list.html?' + v,  controller: 'SimuBuyInfoListCtrl' })
      .when('/simu/buyinfo/add', {  templateUrl: 'tpl/simu/buyinfo/add.html?' + v,  controller: 'SimuBuyInfoAddCtrl' })
      .when('/simu/buyinfo/edit', {  templateUrl: 'tpl/simu/buyinfo/add.html?' + v,  controller: 'SimuBuyInfoEditCtrl' })
      .when('/simu/buyinfo/view', {  templateUrl: 'tpl/simu/buyinfo/view.html?' + v,  controller: 'SimuBuyInfoViewCtrl' })
      .when('/simu/buyhis/list', {  templateUrl: 'tpl/simu/buyhis/list.html?' + v,  controller: 'SimuBuyHisListCtrl' })
      .when('/simu/buyhis/add', {  templateUrl: 'tpl/simu/buyhis/add.html?' + v,  controller: 'SimuBuyHisAddCtrl' })
      .when('/simu/buyhis/edit', {  templateUrl: 'tpl/simu/buyhis/add.html?' + v,  controller: 'SimuBuyHisEditCtrl' })
      .when('/simu/buyhis/view', {  templateUrl: 'tpl/simu/buyhis/view.html?' + v,  controller: 'SimuBuyHisViewCtrl' })
      .when('/simu/buyhis/addlist', {  templateUrl: 'tpl/simu/buyhis/addlist.html?' + v,  controller: 'SimuBuyHisNewCtrl' })
      .when('/simu/lsyj', {  templateUrl: 'tpl/simu/lsyj.html?' + v,  controller: 'SimuLsyjCtrl' })
      .when('/simu/ndyj', {  templateUrl: 'tpl/simu/ndyj.html?' + v,  controller: 'SimuNdyjCtrl' })
      .when('/simu/lsjz', {  templateUrl: 'tpl/simu/lsjz.html?' + v,  controller: 'SimuLsjzCtrl' })
      .when('/simu/spnr', {  templateUrl: 'tpl/simu/spnr.html?' + v,  controller: 'SimuSpnrCtrl' })
      .when('/simu/order/list', {  templateUrl: 'tpl/simu/order/list.html?' + v,  controller: 'SimuOrderListCtrl' })
      .when('/simu/order/view', {  templateUrl: 'tpl/simu/order/view.html?' + v,  controller: 'SimuOrderViewCtrl' })

      .when('/simu/order/phoUpload',{templateUrl: 'tpl/simu/order/orderPhoUpload.html?' + v,  controller: 'OrderPhoUploadCtrl'})
      .when('/productOrderData/list', {  templateUrl: 'tpl/productOrderData/list.html?' + v,  controller: 'ProductOrderDataCtrl' })
      .when('/productOrderData/edit',{ templateUrl: 'tpl/productOrderData/edit.html?' + v,  controller: 'editProductOrderDataCtrl' })

      .when('/million/list', {  templateUrl: 'tpl/million/list.html?' + v,  controller: 'MillionListCtrl' })
      .when('/million/add', {  templateUrl: 'tpl/million/add.html?' + v,  controller: 'MillionAddCtrl' })
      .when('/million/edit', {  templateUrl: 'tpl/million/add.html?' + v,  controller: 'MillionEditCtrl' })

      .when('/activity/add', {  templateUrl: 'tpl/activity/add.html?' + v,  controller: 'ActivityAddCtrl' })
      .when('/activity/list', {  templateUrl: 'tpl/activity/list.html?' + v,  controller: 'ActivityListCtrl' })
      .when('/activity/add/product', {  templateUrl: 'tpl/activity/product.html?' + v,  controller: 'ActivityAddProductCtrl' })


      .when('/order/list', {  templateUrl: 'tpl/order/list.html?' + v,  controller: 'OrderListCtrl' })
      .when('/order/view', {  templateUrl: 'tpl/order/view.html?' + v,  controller: 'OrderViewCtrl' })
      .when('/order/phoUpload', {  templateUrl: 'tpl/order/orderPhoUpload.html?' + v,  controller: 'OrderPEVCPhoUploadCtrl' })

      .when('/pevcorder/list', {  templateUrl: 'tpl/order/list.html?' + v,  controller: 'PEVCOrderListCtrl' })

      .when('/tools/upload', {  templateUrl: 'tpl/tools/upload.html?' + v,  controller: 'ToolsUploadCtrl' })

      .when('/m2b/list', {  templateUrl: 'tpl/m2b/list.html?' + v,  controller: 'M2bWinListCtrl' })

      .when('/supplier/list', {  templateUrl: 'tpl/supplier/list.html?' + v,  controller: 'SupplierListCtrl' })
      .when('/supplier/flow', {  templateUrl: 'tpl/supplier/flow.html?' + v,  controller: 'SupplierFlowListCtrl' })
      .when('/supplier/add', {  templateUrl: 'tpl/supplier/add.html?' + v,  controller: 'SupplierAddCtrl' })
      .when('/supplier/edit', {  templateUrl: 'tpl/supplier/add.html?' + v,  controller: 'SupplierEditCtrl' })

      .when('/report/base', {  templateUrl: 'tpl/report/base.html?' + v,  controller: 'ReportBaseCtrl' })
      .when('/report/xmgy', {  templateUrl: 'tpl/report/xmgy.html?' + v,  controller: 'ReportXmgyCtrl' })
      .when('/report/jgt', {  templateUrl: 'tpl/report/jgt.html?' + v,  controller: 'ReportJgtCtrl' })
      .when('/report/hkly', {  templateUrl: 'tpl/report/hkly.html?' + v,  controller: 'ReportHklyCtrl' })
      .when('/report/zjyt', {  templateUrl: 'tpl/report/zjyt.html?' + v,  controller: 'ReportZjytCtrl' })
      .when('/report/fkcs', {  templateUrl: 'tpl/report/fkcs.html?' + v,  controller: 'ReportFkcsCtrl' })
      .when('/report/rzf', {  templateUrl: 'tpl/report/rzf.html?' + v,  controller: 'ReportRzfCtrl' })
      .when('/report/fxf', {  templateUrl: 'tpl/report/fxf.html?' + v,  controller: 'ReportFxfCtrl' })
      .when('/report/xgzl', {  templateUrl: 'tpl/report/xgzl.html?' + v,  controller: 'ReportXgzlCtrl' })

      .when('/statistical/order', { templateUrl: 'tpl/statistical/order.html?' + v, controller: 'StatisticalOrderCtrl'})
      .when('/statistical/user', { templateUrl: 'tpl/statistical/user.html?' + v, controller: 'StatisticalUserCtrl'})

      .when('/message/list', { templateUrl: 'tpl/message/list.html?' + v, controller: 'MessageListCtrl'})
      .when('/message/edit', { templateUrl: 'tpl/message/add.html?' + v, controller: 'MessageEditCtrl'})

      .when('/ad/msg-list', { templateUrl: 'tpl/ad/msgList.html?' + v, controller: 'MsgListCtrl'})
      .when('/ad/msg-add', { templateUrl: 'tpl/ad/msgAdd.html?' + v, controller: 'MsgAddCtrl'})
      .when('/ad/msg-update', { templateUrl: 'tpl/ad/msgAdd.html?' + v, controller: 'MsgUpdateCtrl'})

      .when('/ad/act-list', { templateUrl: 'tpl/ad/actList.html?' + v, controller: 'ActListCtrl'})
      .when('/ad/act-add', { templateUrl: 'tpl/ad/actAdd.html?' + v, controller: 'ActAddCtrl'})
      .when('/ad/act-update', { templateUrl: 'tpl/ad/actAdd.html?' + v, controller: 'ActUpdateCtrl'})

      .when('/im/fb/list', { templateUrl: 'tpl/infoManage/feedBack/list.html?' + v, controller: 'InfoManageFeedBackCtrl'})
      .when('/im/bc/list', { templateUrl: 'tpl/finance/bankCard/list.html?' + v, controller: 'InfoManageBankCardCtrl'})
      .when('/im/withdraw/list', { templateUrl: 'tpl/finance/withdraw/list.html?' + v, controller: 'InfoManageWithdrawCtrl'})
      .when('/im/withdraw/detail', { templateUrl: 'tpl/finance/withdraw/detail.html?' + v, controller: 'InfoManageWithdrawDetailCtrl'})
      .when('/im/payRunning/list', { templateUrl: 'tpl/finance/payRunning/list.html?' + v, controller: 'InfoManageWithPayRunningCtrl'})
      .when('/im/drawAskFor/list', { templateUrl: 'tpl/finance/drawAskFor/list.html?' + v, controller: 'InfoManageWithDrawAskForCtrl'})
      .when('/im/drawAskFor/detail', { templateUrl: 'tpl/finance/drawAskFor/detail.html?' + v, controller: 'InfoManageWithDrawAskForDetailCtrl'})

      //
      .when('/finance/fpAccountVoucher/list', { templateUrl: 'tpl/finance/fpAccountVoucher/list.html?' + v, controller: 'FpAccountVoucherCtrl'})
      .when('/finance/fpAccountVoucher/add', { templateUrl: 'tpl/finance/fpAccountVoucher/add.html?' + v, controller: 'FpAccountVoucherDetailCtrl'})

      .when('/switch/list', { templateUrl: 'tpl/switch/list.html?' + v, controller: 'SwitchListCtrl'})
      .when('/setting/list', { templateUrl: 'tpl/setting/list.html?' + v, controller: 'SettingListCtrl'})

      .when('/order/manager/user/list', { templateUrl: 'tpl/order/manager/user/list.html?' + v, controller: 'OrderManagerUserListCtrl'})
      .when('/order/manager/user/add', { templateUrl: 'tpl/order/manager/user/add.html?' + v, controller: 'OrderManagerUserAddCtrl'})

      .when('/system/403', {  templateUrl: 'tpl/system/403.html?' + v,  controller: 'System403Ctrl' })
      .when('/order/followUp/list', {  templateUrl: 'tpl/order/manager/followUp/list.html?' + v,  controller: 'OrderFollowUpListCtrl' })
      .when('/order/followUp/simu/list', {  templateUrl: 'tpl/order/manager/followUp/simu/list.html?' + v,  controller: 'FollowUpCtrl' })

      .when('/neworder/qudao/myorder/incomplete/list', {  templateUrl: 'tpl/neworder/qudao/myorder/incomplete/list.html?' + v,  controller: 'NewOrderQDMListCtrl' })
      .when('/neworder/qudao/myorder/incomplete/view', {  templateUrl: 'tpl/neworder/qudao/myorder/incomplete/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/qudao/myorder/effective/list', {  templateUrl: 'tpl/neworder/qudao/myorder/effective/list.html?' + v,  controller: 'NewOrderQDMListCtrl' })
      .when('/neworder/qudao/myorder/effective/view', {  templateUrl: 'tpl/neworder/qudao/myorder/effective/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/qudao/myorder/back/list', {  templateUrl: 'tpl/neworder/qudao/myorder/back/list.html?' + v,  controller: 'NewOrderQDMListCtrl' })
      .when('/neworder/qudao/myorder/back/view', {  templateUrl: 'tpl/neworder/qudao/myorder/back/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/qudao/myorder/cancle/list', {  templateUrl: 'tpl/neworder/qudao/myorder/cancle/list.html?' + v,  controller: 'NewOrderQDMListCtrl' })
      .when('/neworder/qudao/myorder/cancle/view', {  templateUrl: 'tpl/neworder/qudao/myorder/cancle/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })

      .when('/neworder/qudao/ordermanager/incomplete/list', {  templateUrl: 'tpl/neworder/qudao/ordermanager/incomplete/list.html?' + v,  controller: 'NewOrderQDAListCtrl' })
      .when('/neworder/qudao/ordermanager/incomplete/view', {  templateUrl: 'tpl/neworder/qudao/ordermanager/incomplete/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/qudao/ordermanager/effective/list', {  templateUrl: 'tpl/neworder/qudao/ordermanager/effective/list.html?' + v,  controller: 'NewOrderQDAListCtrl' })
      .when('/neworder/qudao/ordermanager/effective/view', {  templateUrl: 'tpl/neworder/qudao/ordermanager/effective/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/qudao/ordermanager/back/list', {  templateUrl: 'tpl/neworder/qudao/ordermanager/back/list.html?' + v,  controller: 'NewOrderQDAListCtrl' })
      .when('/neworder/qudao/ordermanager/back/view', {  templateUrl: 'tpl/neworder/qudao/ordermanager/back/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/qudao/ordermanager/cancle/list', {  templateUrl: 'tpl/neworder/qudao/ordermanager/cancle/list.html?' + v,  controller: 'NewOrderQDAListCtrl' })
      .when('/neworder/qudao/ordermanager/cancle/view', {  templateUrl: 'tpl/neworder/qudao/ordermanager/cancle/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })

      .when('/neworder/chanping/myorder/incomplete/list', {  templateUrl: 'tpl/neworder/chanping/myorder/incomplete/list.html?' + v,  controller: 'NewOrderCPMListCtrl' })
      .when('/neworder/chanping/myorder/incomplete/view', {  templateUrl: 'tpl/neworder/chanping/myorder/incomplete/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/chanping/myorder/effective/list', {  templateUrl: 'tpl/neworder/chanping/myorder/effective/list.html?' + v,  controller: 'NewOrderCPMListCtrl' })
      .when('/neworder/chanping/myorder/effective/view', {  templateUrl: 'tpl/neworder/chanping/myorder/effective/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/chanping/myorder/audit/list', {  templateUrl: 'tpl/neworder/chanping/myorder/audit/list.html?' + v,  controller: 'NewOrderCPMListCtrl' })
      .when('/neworder/chanping/myorder/audit/view', {  templateUrl: 'tpl/neworder/chanping/myorder/audit/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/chanping/myorder/back/list', {  templateUrl: 'tpl/neworder/chanping/myorder/back/list.html?' + v,  controller: 'NewOrderCPMListCtrl' })
      .when('/neworder/chanping/myorder/back/view', {  templateUrl: 'tpl/neworder/chanping/myorder/back/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/chanping/myorder/cancle/list', {  templateUrl: 'tpl/neworder/chanping/myorder/failure/list.html?' + v,  controller: 'NewOrderCPMListCtrl' })
      .when('/neworder/chanping/myorder/cancle/view', {  templateUrl: 'tpl/neworder/chanping/myorder/failure/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })

      .when('/neworder/chanping/ordermanager/incomplete/list', {  templateUrl: 'tpl/neworder/chanping/ordermanager/incomplete/list.html?' + v,  controller: 'NewOrderCPAListCtrl' })
      .when('/neworder/chanping/ordermanager/incomplete/view', {  templateUrl: 'tpl/neworder/chanping/ordermanager/incomplete/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/chanping/ordermanager/effective/list', {  templateUrl: 'tpl/neworder/chanping/ordermanager/effective/list.html?' + v,  controller: 'NewOrderCPAListCtrl' })
      .when('/neworder/chanping/ordermanager/effective/view', {  templateUrl: 'tpl/neworder/chanping/ordermanager/effective/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/chanping/ordermanager/audit/list', {  templateUrl: 'tpl/neworder/chanping/ordermanager/audit/list.html?' + v,  controller: 'NewOrderCPAListCtrl' })
      .when('/neworder/chanping/ordermanager/audit/view', {  templateUrl: 'tpl/neworder/chanping/ordermanager/audit/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/chanping/ordermanager/back/list', {  templateUrl: 'tpl/neworder/chanping/ordermanager/back/list.html?' + v,  controller: 'NewOrderCPAListCtrl' })
      .when('/neworder/chanping/ordermanager/back/view', {  templateUrl: 'tpl/neworder/chanping/ordermanager/back/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/chanping/ordermanager/cancle/list', {  templateUrl: 'tpl/neworder/chanping/ordermanager/failure/list.html?' + v,  controller: 'NewOrderCPAListCtrl' })
      .when('/neworder/chanping/ordermanager/cancle/view', {  templateUrl: 'tpl/neworder/chanping/ordermanager/failure/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })

      .when('/neworder/caiwu/ordermanager/incomplete/list', {  templateUrl: 'tpl/neworder/caiwu/ordermanager/incomplete/list.html?' + v,  controller: 'NewOrderCWAListCtrl' })
      .when('/neworder/caiwu/ordermanager/incomplete/view', {  templateUrl: 'tpl/neworder/caiwu/ordermanager/incomplete/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/caiwu/ordermanager/effective/list', {  templateUrl: 'tpl/neworder/caiwu/ordermanager/effective/list.html?' + v,  controller: 'NewOrderCWAListCtrl' })
      .when('/neworder/caiwu/ordermanager/effective/view', {  templateUrl: 'tpl/neworder/caiwu/ordermanager/effective/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })
      .when('/neworder/caiwu/ordermanager/back/list', {  templateUrl: 'tpl/neworder/caiwu/ordermanager/back/list.html?' + v,  controller: 'NewOrderCWAListCtrl' })
      .when('/neworder/caiwu/ordermanager/back/view', {  templateUrl: 'tpl/neworder/caiwu/ordermanager/back/view.html?' + v,  controller: 'NewOrderQDViewCtrl' })

      // 合并订单列表页和ctr
      .when('/neworder/neworder0815/list', {  templateUrl: 'tpl/neworder/neworder0815/list.html?' + v,  controller: 'NewOrderListGZCtrl' })
      .when('/neworder/neworder0815/view', {  templateUrl: 'tpl/neworder/neworder0815/view.html?' + v,  controller: 'NewOrderViewCtrl' })
      .when('/neworder/neworder0815/base', {  templateUrl: 'tpl/neworder/neworder0815/base.html?' + v,  controller: 'NewOrderBaseCtrl' })
      //合同
      .when('/neworder/neworder0815/contract/view', {  templateUrl: 'tpl/neworder/neworder0815/contract/view.html?' + v,  controller: 'OrderContractCtrl' })

      .when('/product/qudaoList', {  templateUrl: 'tpl/product/qudaoList.html?' + v,  controller: 'ProductQDListCtrl' })
      .when('/product/qudaoView', {  templateUrl: 'tpl/product/qudaoView.html?' + v,  controller: 'ProductQDViewCtrl' })
      .when('/product/qudaoListResult', {  templateUrl: 'tpl/product/qudaoListResult.html?' + v,  controller: 'ProductQDListCtrl' })


      .when('/finance/order/list', {  templateUrl: 'tpl/finance/order/list.html?' + v,  controller: 'NewOrderCWGLYListCtrl' })
      .when('/finance/product/view', {  templateUrl: 'tpl/finance/product/view.html?' + v,  controller: 'NewOrderCWAViewCtrl' })

      //理财师管理
      .when('/fa/manager/list', { templateUrl: 'tpl/fa/manager/list.html?' + v, controller: 'LicaishiManagerUserListCtrl'})
      .when('/fa/manager/add', { templateUrl: 'tpl/fa/manager/add.html?' + v, controller: 'LicaishiManagerUserAddCtrl'})


      .when('/outproduct/list', { templateUrl: 'tpl/outProduct/list.html?' + v, controller: 'OutProductListCtrl'})
      .when('/outproduct/detail', { templateUrl: 'tpl/outProduct/detail.html?' + v, controller: 'OutProductDetailCtrl'})
      .when('/personalsupplier/list', { templateUrl: 'tpl/personalsupplier/list.html?' + v, controller: 'PersonalSupplierListCtrl'})
      .when('/personalsupplier/detail', { templateUrl: 'tpl/personalsupplier/detail.html?' + v, controller: 'PersonalSupplierDetailCtrl'})
      .when('/personalsupplier/detail', { templateUrl: 'tpl/personalsupplier/detail.html?' + v, controller: 'PersonalSupplierDetailCtrl'})

      .when('/varietyProduct/list', { templateUrl: 'tpl/varietyProduct/list.html?' + v, controller: 'VarietyProductListCtrl'})
      .when('/varietyProduct/detail', { templateUrl: 'tpl/varietyProduct/detail.html?' + v, controller: 'NewProductDetailCtrl'})
      .when('/varietyProduct/samePro', { templateUrl: 'tpl/varietyProduct/samePro.html?' + v, controller: 'SameProductListCtrl'})
      // .when('/varietyProduct/likePro', { templateUrl: 'tpl/varietyProduct/likePro.html?' + v, controller: 'LikeProductListCtrl'})
      .when('/varietyProduct/newPro', { templateUrl: 'tpl/varietyProduct/newPro.html?' + v, controller: 'NewProductListCtrl'})
      .when('/varietyProduct/adjust', { templateUrl: 'tpl/varietyProduct/adjust.html?' + v, controller: 'ProductAddCtrl'})
      .when('/varietyProduct/sameProDetail', { templateUrl: 'tpl/varietyProduct/sameProDetail.html?' + v, controller: 'SameProductDetailCtrl'})
      .when('/varietyProduct/add', { templateUrl: 'tpl/varietyProduct/base.html?' + v, controller: 'addsNewProductCtrl'})
      //壹财富xpath配置
       .when('/productRegex/list', { templateUrl: 'tpl/productRegex/list.html?' + v, controller: 'ProductRegexCtrl'})

      .when('/bidproduct/list', { templateUrl: 'tpl/bidproduct/list.html?' + v, controller: 'BidProductListCtrl'})
      .when('/bidproduct/detail', { templateUrl: 'tpl/bidproduct/detail.html?'+v,controller:'BidProductDetailCtrl'})



      .when('/system/403', {  templateUrl: 'tpl/system/403.html?' + v,  controller: 'System403Ctrl' })
      .when('/order/followUp/list', {  templateUrl: 'tpl/order/manager/followUp/list.html?' + v,  controller: 'OrderFollowUpListCtrl' })
      .when('/order/followUp/simu/list', {  templateUrl: 'tpl/order/manager/followUp/simu/list.html?' + v,  controller: 'FollowUpCtrl' })

      .when('/chooseRecommend/list', {  templateUrl: 'tpl/product/recommend/list.html?' + v,  controller: 'ProductChooseRecommendList' })
      .when('/chooseRecommend/add', {  templateUrl: 'tpl/product/recommend/add.html?' + v,  controller: 'ProductChooseRecommendAdd' })
      .when('/chooseRecommend/edit', {  templateUrl: 'tpl/product/recommend/add.html?' + v,  controller: 'ProductChooseRecommendEdit' })

      .when('/super/list', {  templateUrl: 'tpl/ad/super/list.html?' + v,  controller: 'AdSuperList' })
      .when('/super/add', {  templateUrl: 'tpl/ad/super/add.html?' + v,  controller: 'AdSuperAdd' })
      .when('/super/edit', {  templateUrl: 'tpl/ad/super/add.html?' + v,  controller: 'AdSuperEdit' })

      .when('/mediaRecommend/list', {  templateUrl: 'tpl/media/recommend/list.html?' + v,  controller: 'MediaRecommendListCtrl' })

      .when('/behavior/list', {  templateUrl: 'tpl/behavior/list.html?' + v, controller:'BehaviorCtrl' })
      .when('/behavior/view',{ templateUrl:'tpl/behavior/view.html?' + v,controller:'BehaviorViewCtrl' })

      .when('/salecon/list',{ templateUrl: 'tpl/salecon/list.html?' + v, controller:'SaleconListCtrl' })

      .when('/product/hot', {  templateUrl: 'tpl/product/other/hot.html?' + v,  controller: 'ProductHotCtrl' })


      .when('/hongbao/list', {  templateUrl: 'tpl/hongbao/list.html?' + v,  controller: 'HongbaoListCtrl' })
      .when('/hongbao/detail', {  templateUrl: 'tpl/hongbao/detail.html?' + v,  controller: 'HongbaoDetailCtrl' })
      .when('/fa/sanfang/list', {templateUrl: 'tpl/fa/sanfang/list.html?' + v, controller: 'SanFangCtrl'})

      .when('/fa/downline/list', {templateUrl: 'tpl/fa/downline/list.html?' + v, controller: 'DownListCtrl'})
      .when('/fa/downline/view', {templateUrl: 'tpl/fa/downline/view.html?' + v, controller: 'DownViewCtrl'})
      //理财师内部

      .when('/fa/neibu/lcsmanlist', {templateUrl: 'tpl/fa/neibu/list.html?' + v, controller: 'LcsmanlistCtrl'})

      .when('/news/add', {templateUrl: 'tpl/news/add.html?' + v, controller: 'NewsAddCtrl'})
      .when('/news/list', {templateUrl: 'tpl/news/list.html?' + v, controller: 'NewsListCtrl'})

      .when('/roadVideo/add', {templateUrl: 'tpl/roadVideo/add.html?' + v, controller: 'roadVideoAddCtrl'})
      .when('/roadVideo/list', {templateUrl: 'tpl/roadVideo/list.html?' + v, controller: 'roadVideoListCtrl'})
      .when('/roadVideo/play', {templateUrl: 'tpl/roadVideo/play.html?' + v, controller: 'roadVideoPlayCtrl'})

      .when('/blindate/list', {templateUrl: 'tpl/blindate/list.html?' + v, controller: 'blindateListCtrl'})

      .when('/financier/list', {templateUrl: 'tpl/financier/list.html?' + v, controller: 'FinancierListCtrl'})
      .when('/financier/add', {templateUrl: 'tpl/financier/add.html?' + v, controller: 'FinancierAddCtrl'})

      .when('/shop/falist', {  templateUrl: 'tpl/shop/falist.html?' + v,  controller: 'ShopUserCtrl' })
      .when('/shop/faauit', {  templateUrl: 'tpl/shop/faauit.html?' + v,  controller: 'ShopFaViewCtrl' })
      //.when('/shop/view', {  templateUrl: 'tpl/shop/view.html?' + v,  controller: 'ShopFaViewCtrl' })
      .when('/shop/sucailist', {  templateUrl: 'tpl/shop/sucailist.html?' + v,  controller: 'ShopSucaiCtrl' })
      .when('/shop/sucaiadd', {  templateUrl: 'tpl/shop/sucaiadd.html?' + v,  controller: 'ShopSucaiAddCtrl' })

      .when('/updateOrder/add', {  templateUrl: 'tpl/updateOrder/add.html?' + v,  controller: 'UpdateOrderAddCtrl' })
      .when('/updateOrder/list', {  templateUrl: 'tpl/updateOrder/list.html?' + v,  controller: 'UpdateOrderListCtrl' })
      .when('/updateOrder/update', {  templateUrl: 'tpl/updateOrder/update.html?' + v,  controller: 'UpdateOrderCtrl' })
      .when('/product/updateDate', {  templateUrl: 'tpl/product/updateDate.html?' + v,  controller: 'UpdateProductDateCtrl' })

      .when('/shop/behavior/home', {  templateUrl: 'tpl/shop/behavior/home.html?' + v,  controller: 'BehaviorHomeCtrl' })
      .when('/shop/behavior/prod', {  templateUrl: 'tpl/shop/behavior/prod.html?' + v,  controller: 'BehaviorProdCtrl' })
      .when('/shop/behavior/cust', {  templateUrl: 'tpl/shop/behavior/cust.html?' + v,  controller: 'BehaviorCustCtrl' })
      .when('/shop/behavior/fp', {  templateUrl: 'tpl/shop/behavior/fp.html?' + v,  controller: 'BehaviorFpCtrl' })
      .when('/shop/behavior/footermenu', {  templateUrl: 'tpl/shop/behavior/footermenu.html?' + v,  controller: 'BehaviorFooterMenuCtrl' })
      .when('/shop/feedback/list', {  templateUrl: 'tpl/shop/feedback/list.html?' + v,  controller: 'ShopUserFeedBackList' })
      .when('/shop/background/list', {  templateUrl: 'tpl/shop/background/list.html?' + v,  controller: 'ShopBackGroundList' })
      .when('/shop/behavior/custregister', {  templateUrl: 'tpl/shop/behavior/custregister.html?' + v,  controller: 'BehaviorCustregisterList' })
      .when('/shop/behavior/cruxdata', {  templateUrl: 'tpl/shop/behavior/cruxdata.html?' + v,  controller: 'BehaviorCruxdataList' })

      .when('/shop/subject/list', {  templateUrl: 'tpl/shop/subject/list.html?' + v,  controller: 'ShopSubjectListCtrl' })


      // 数据统计
      .when('/statistics/register', { templateUrl: 'tpl/statistics/register.html?' + v, controller: 'statisticsRegisterCtrl'})
      .when('/statistics/registerRole', { templateUrl: 'tpl/statistics/registerRole.html?' + v, controller: 'statisticsRegisterRoleCtrl'})
      .when('/statistics/order', { templateUrl: 'tpl/statistics/order.html?' + v, controller: 'statisticsOrderCtrl'})
      .when('/statistics/orderUserPer', { templateUrl: 'tpl/statistics/orderUserPer.html?' + v, controller: 'statisticsOrderUserPerCtrl'})
      .when('/statistics/orderFauserRolePrpportion', { templateUrl: 'tpl/statistics/orderFauserRolePrpportion.html?' + v, controller: 'statisticsOrderFauserRolePrpportionCtrl'})
      .when('/statistics/orderFauserPrpportion', { templateUrl: 'tpl/statistics/orderFauserPrpportion.html?' + v, controller: 'statisticsOrderFauserPrpportionCtrl'})
      .when('/statistics/orderRanking', { templateUrl: 'tpl/statistics/orderRanking.html?' + v, controller: 'statisticsOrderRankingCtrl'})
      .when('/statistics/companyTotal', { templateUrl: 'tpl/statistics/companyTotal.html?' + v, controller: 'statisticsCompanyTotalCtrl'})

      .when('/shop/information/add', {  templateUrl: 'tpl/shop/information/addoredit.html?' + v,  controller: 'ShopInformationAddCtrl' })
      .when('/shop/information/edit', {  templateUrl: 'tpl/shop/information/addoredit.html?' + v,  controller: 'ShopInformationEditCtrl' })
      .when('/shop/information/list', {  templateUrl: 'tpl/shop/information/list.html?' + v,  controller: 'ShopInformationListCtrl' })
      .when('/shop/yxtactivity/list', {  templateUrl: 'tpl/shop/yxtactivity/list.html?' + v,  controller: 'jcsYxtActivityCount' })
      .when('/shop/yxtactivity/withdrawLogList', {  templateUrl: 'tpl/shop/yxtactivity/withdrawLogList.html?' + v,  controller: 'jcsYxtActivityDrawCount' })

      .when('/shop/total/edit', {  templateUrl: 'tpl/shop/total/edit.html?' + v,  controller: 'pcTotalDynamic' })
    .when('/shop/playopen/list', {  templateUrl: 'tpl/shop/playopen/list.html?' + v,  controller: 'playOpenApplyList' })

      //奖项配置
      .when('/salecon/salePrizes', {  templateUrl: 'tpl/salecon/salePrizeslist.html?' + v,  controller: 'salesPrizesListCtrl' })
      .when('/salecon/salePrizesPeople', {  templateUrl: 'tpl/salecon/salePrizesPeoplelist.html?' + v,  controller: 'salesPrizesPeopleListCtrl' })

        //一元早餐商家信息维护
      .when('/shop/yyzcact/list', {  templateUrl: 'tpl/shop/yyzcact/list.html?' + v,  controller: 'shopInfoListCtrl' })

        .when('/statistics/productKeyWord', { templateUrl: 'tpl/statistics/productKeyWord.html?' + v, controller: 'productKeyWordTotalCtrl'})

        .otherwise({  redirectTo: '/index' });
}]).config(['momentPickerProvider', function (momentPickerProvider) {
    momentPickerProvider.options({
        locale:"zh-cn",
    });
}]);
